import {axios_get,axios_post,axios_delete,axios_put} from './http.js'

export const jwt_send_get = p  => axios_post("/users/login/",p)
export const get_weibo_url = p  => axios_get("/users/weibo_url/",p)
export const send_user_email = p  => axios_get("/users/send_email/",p)
export const reset_user_pwd = p  => axios_get("",p)
export const addgame = p  => axios_post("/app01/addgame/",p)
export const get_game = p  => axios_get("/app01/getgame/",p)
export const show_game = p  => axios_get("/app01/getgame/",p)
export const show_hero = p  => axios_get("/app01/showhero/",p)
export const updategame = p  => axios_put("/app01/addgame/",p)
export const updatehero = p  => axios_put("/app01/gethero/",p)
export const deletegame = p  => axios_delete("/app01/getgame/",p)
export const deletehero = p  => axios_delete("/app01/gethero/",p)
export const adduser = p  => axios_post("/week2/adduser/",p)
export const showuser = p  => axios_get("/week2/adduser/",p)
export const select_feilei_one = p  => axios_get("/goods/fenleione/",p)
export const select_feilei_two = p  => axios_get("/goods/fenleitwo/",p)
export const areaone = p  => axios_get("/goods/areaone/",p)
export const areamore = p  => axios_get("/goods/areamore/",p)
export const goodsone = p  => axios_get("/goods/goodsone/",p)
export const login = p  => axios_get("/week3/login/",p)
export const show_book = p  => axios_get("/week3/book/",p)
export const delete_book = p  => axios_delete("/week3/book/",p)
export const create_cart = p  => axios_post("/goods/cart/",p)
export const create_cart_buy = p  => axios_get("/goods/cart/",p)
export const update_cart = p  => axios_put("/goods/cart/",p)
export const delete_cart = p  => axios_delete("/goods/cart/",p)
export const get_one = p  => axios_get("/app02/listone/",p)
export const get_listtwo = p  => axios_get("/app02/listtwo/",p)
export const send_buy_info = p  => axios_post("/orderapp/buyinfo/",p)
export const get_buy_info = p  => axios_get("/orderapp/buyinfo/",p)
export const loginv = p  => axios_get("/app02/loginv/",p)
export const addauthor = p  => axios_post("/week4/author/",p)
export const get_author = p  => axios_get("/week4/author/",p)
export const get_books= p  => axios_get("/app03/books/",p)
export const get_books2= p  => axios_get("/app03/booksf/",p)
export const del_books= p  => axios_delete("/app03/books/",p)




